<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script type="text/javascript" src="/js/notification/notification.js"></script>
<script type="text/javascript">
var me ;
<s:if test="#jsonUser!=null">
	me =<s:property value="#jsonUser" escape="false"/>;
</s:if>
notify();
</script>
<div id="header">
	<div id="header-inner">
		<div id="askLoading"></div>
		<div class="header-left">
			<h1 title="优问网">
				<span>优问网</span> <a class="header-logo"
					href="http://yoasking.com"><img alt="优问网" title="优问网"
					src="/img/wayin-logo.png" /></a> <a id="header-ask-buton" href="###">我来问一个</a>
			</h1>
		</div>
		<div class="header-right">
			<div id="header-user">
				<a href="#" class="header-user-a"> <span
					class="header-user-icon" style="background-image:url(<s:property value='loginUser.avatarPath' />)"></span> <span class="header-user-dropdown"></span>
					<span class="header-username"><s:property value="loginUser.nickname" /></span>
				</a>
				<div id="header-setnav">
					<a href="http://www.yoasking.com/user/<s:property value="loginUser.id"/>">我的优问</a><a href="http://www.yoasking.com/user/userSetting">设置</a> 
					<a id="x1-logout" href="http://www.yoasking.com/user/logout">退出</a>
				</div>
			</div>
			<div id="header-notification">
				<a class="noti-a" href="###"></a>
				<div class="header-notification-pop">
				</div>
			</div>
			<div id="header-search">
				<input type="text" value="找朋友" />
			</div>
		</div>
		<div class="clear"></div>
		<input type="hidden" id="loginUserId" value="<s:property value='loginUser.id'/>"/>
	</div>
</div>
<script type="text/javascript">
	$(function() {
		$('#header-ask-buton').click(askInit);
		headSetting();
		headnotification();
	});
</script>